package com.ctshk.rpc.certificate.service;

import com.ctshk.common.dto.Result;
import com.ctshk.common.model.PageResponse;
import com.ctshk.rpc.certificate.dto.CertificateAcceptDTO;
import com.ctshk.rpc.certificate.dto.CertificateMacauTravelDTO;
import com.ctshk.rpc.certificate.dto.CertificateReentryPermitDTO;
import com.ctshk.rpc.certificate.req.CertificateAcceptPageReq;
import com.ctshk.rpc.certificate.req.CertificateReentryPermitReq;
import com.ctshk.rpc.certificate.req.ProcCommonCertificateReq;
import com.ctshk.rpc.certificate.req.QueryAppointmentInfoReq;

/**
 * <p>
 * 回乡证登记申请表 服务类
 * </p>
 *
 * @author 谢诗宏
 * @since 2021-03-22
 */
public interface ICertificateReentryPermitService {

    /**
     * 回乡登记
     * @param certificateReentryPermitReq
     * @param userId
     * @return
     */
    Result saveReentryPermit(CertificateReentryPermitReq certificateReentryPermitReq, Long userId);

    /**
     * 回乡证件详情
     * @param id
     * @return
     */
    CertificateReentryPermitDTO queryDetail(Long id);

    /**
     * 修改回乡证信息
     * @param certificateReentryPermitReq
     * @param userId
     * @return
     */
    Result updateReentryPermit(CertificateReentryPermitReq certificateReentryPermitReq, Long userId);

    /**
     * 证件受理列表
     * @param acceptPageReq
     * @return
     */
    PageResponse<CertificateAcceptDTO> queryCertificateAcceptList(CertificateAcceptPageReq acceptPageReq);

    /**
     * 处理预约信息
     * @param procReserveReentryPermitReq
     * @param userId
     * @return
     */
    Result procReserveReentryPermit(ProcCommonCertificateReq procReserveReentryPermitReq, Long userId);

    Result<CertificateMacauTravelDTO> queryAppointmentInfo(QueryAppointmentInfoReq queryAppointmentInfoReq, Long userId);

    Result cancelAppointment(Long id, Long userId);
}
